<?php echo $this->headLink()->appendStylesheet($this->websiteUrl . '/system/css/seotoaster.css'); ?>
<?php echo $this->headLink()->appendStylesheet($this->websiteUrl . 'system/js/thickbox/thickbox.css'); ?>
<?php $this->headScript()->appendFile($this->websiteUrl .'system/js/jquery/jquery.js'); ?>
<?php $this->headScript()->appendFile($this->websiteUrl . 'system/js/thickbox/thickbox.js'); ?>
<?php $this->headScript()->appendFile($this->websiteUrl .'system/js/quote/quote.js'); ?>
<?php echo $this->headScript(); ?>
<div id="seotoaster" class="shoppingquotes">
	<div class="success" style="display: none;" id="ajaxmsg" onclick="$(this).hide();"></div>
	<input type="hidden" id="wsurl-hidden" value="<?php echo $this->websiteUrl; ?>"/>
	<div class="admineditwhat">{%Manage quotes%}&nbsp;&nbsp;<a href="javascript:;" onclick="top.location.href='<?php echo $this->websiteUrl; ?>sys/backend_quote/addnew'">{%Add new%}</a></div>
	<div class="close_window" onclick="/*parent.tb_remove()*/top.location.reload();"></div>
	<div id="quotelegend">
		<div>{%Name%}</div>
		<div>{%Date%}</div>
		<div>{%Status%}</div>
		<div>{%Preview%}</div>
		<div>{%Delete%}</div>
	</div>
	<div id="quoteholder">
		<?php if(!empty($this->quotesData)): ?>
			<?php foreach($this->quotesData as $quoteItem): ?>
				<div class="qitem">
					<div><a href="<?php echo $this->websiteUrl; ?>sys/backend_quote/edit/qid/<?php echo $quoteItem['id']; ?>" onclick="top.location.href=$(this).attr('href');"><?php echo $quoteItem['name']; ?></a></div>
					<div><?php echo date('j M Y', strtotime($quoteItem['date'])); ?></div>
					<div>
						<select class="qstatus" id="qstat-<?php echo $quoteItem['id']; ?>">
							<?php foreach($this->quotesAvstatuses as $statVal => $statName): ?>
								<option value="<?php echo $statVal; ?>" <?php echo ($statVal == $quoteItem['status']) ? 'selected="selected"' : '';?>><?php echo $statName; ?></option>
							<?php endforeach; ?>
						</select>
						<?php //echo $quoteItem['status']; ?>
					</div>
					<div><?php echo ($quoteItem['content'] != '') ? '<a target="_blank" href="'. $this->websiteUrl . 'sys/backend_quote/preview/qid/' . $quoteItem['id'] . '.' . md5($quoteItem['id']) . '.' . $quoteItem['id'] . '">Preview</a>' : 'no preview'; ?></div>
					<div><a href="javascript:;" class="delquote" id="qdel-<?php echo $quoteItem['id']; ?>">{%delete%}</a></div>
				</div>
			<?php endforeach; ?>
		<?php else: ?>

		<?php endif; ?>
	</div>
</div>